package com.listtest;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.Menu;
import android.widget.TextView;

public class SampleActivity extends Activity {
	
	String  id,topic,detail;
	TextView txt1;
	TextView txt2;
	TextView txt3;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_sample);
		
		try{
			
			  txt1=(TextView)findViewById(R.id.textView1);
			  txt2=(TextView)findViewById(R.id.textView2);
			  txt3=(TextView)findViewById(R.id.textView3);
		      Intent i = getIntent();    
		      this.id = i.getStringExtra("id");
		      this.topic = i.getStringExtra("topic");
		      this.detail=	i.getStringExtra("detail");
		      txt1.setText(id);
		      txt2.setText(topic);
		      txt3.setText(detail);
		      
			
		}
		catch(Exception ex){
			Log.d("ERROR :", "Loading exception ");
		}
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.sample, menu);
		return true;
	}

}
